package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ParkingRecordChargeMapper;
import com.ruoyi.domain.ParkingRecordCharge;
import com.ruoyi.service.IParkingRecordChargeService;

/**
 * 车辆收费记录Service业务层处理
 * 
 * @author dongdong
 * @date 2025-08-28
 */
@Service
public class ParkingRecordChargeServiceImpl implements IParkingRecordChargeService 
{
    @Autowired
    private ParkingRecordChargeMapper parkingRecordChargeMapper;

    /**
     * 查询车辆收费记录
     * 
     * @param id 车辆收费记录主键
     * @return 车辆收费记录
     */
    @Override
    public ParkingRecordCharge selectParkingRecordChargeById(Long id)
    {
        return parkingRecordChargeMapper.selectParkingRecordChargeById(id);
    }

    /**
     * 查询车辆收费记录列表
     * 
     * @param parkingRecordCharge 车辆收费记录
     * @return 车辆收费记录
     */
    @Override
    @DataScope(deptAlias = "prc")
    public List<ParkingRecordCharge> selectParkingRecordChargeList(ParkingRecordCharge parkingRecordCharge)
    {
        return parkingRecordChargeMapper.selectParkingRecordChargeList(parkingRecordCharge);
    }

    /**
     * 新增车辆收费记录
     * 
     * @param parkingRecordCharge 车辆收费记录
     * @return 结果
     */
    @Override
    public int insertParkingRecordCharge(ParkingRecordCharge parkingRecordCharge)
    {
        return parkingRecordChargeMapper.insertParkingRecordCharge(parkingRecordCharge);
    }

    /**
     * 修改车辆收费记录
     * 
     * @param parkingRecordCharge 车辆收费记录
     * @return 结果
     */
    @Override
    public int updateParkingRecordCharge(ParkingRecordCharge parkingRecordCharge)
    {
        return parkingRecordChargeMapper.updateParkingRecordCharge(parkingRecordCharge);
    }

    /**
     * 批量删除车辆收费记录
     * 
     * @param ids 需要删除的车辆收费记录主键
     * @return 结果
     */
    @Override
    public int deleteParkingRecordChargeByIds(Long[] ids)
    {
        return parkingRecordChargeMapper.deleteParkingRecordChargeByIds(ids);
    }

    /**
     * 删除车辆收费记录信息
     * 
     * @param id 车辆收费记录主键
     * @return 结果
     */
    @Override
    public int deleteParkingRecordChargeById(Long id)
    {
        return parkingRecordChargeMapper.deleteParkingRecordChargeById(id);
    }
}
